package cn.kgc.springboot.controller;

import cn.kgc.springboot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 课工场
 * @date 2024/11/28
 * @description
 *   localhost:8080/hello/m1
 */
@RestController
@RequestMapping("hello")
public class HelloController {


    @Autowired
    private HelloService helloService;

    @GetMapping("m1")
    public Map<String,Object>  method1(){

        return helloService.method1();

    }

}
